﻿using System.Web;

namespace ECommerce.Web.Services.Security
{
    public class UserSecurityContext : IUserSecurityContext
    {
        public string UserName
        {
            get { return HttpContext.Current.User.Identity.Name; }
        }

        public bool IsAuthenticated
        {
            get { return HttpContext.Current.User.Identity.IsAuthenticated; }
        }
    }
}
